//
//  WalletVC.m
//  reSearchDemo
//
//  Created by 云库 on 15/7/21.
//  Copyright (c) 2015年 Kiwaro. All rights reserved.
//

#import "WalletVC.h"

@interface WalletVC ()

@end

@implementation WalletVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"财富";
    [self setRightBarButton:@"财富明细" selector:@selector(wealthDetail)];
    [self wealthMainView];
}
-(void)wealthDetail{
    
}
-(void)wealthMainView{
    UIImageView * wealthImg=[[UIImageView alloc]initWithFrame:CGRectMake(self.view.frame.size.width/2-50,30+64, 100, 100)];
    wealthImg.backgroundColor=[UIColor yellowColor];
    [self.view addSubview:wealthImg];
    
    UILabel * myWealthLab=[[UILabel alloc]initWithFrame:CGRectMake(self.view.frame.size.width/2-45, wealthImg.frame.origin.y+wealthImg.frame.size.height+10, 90, 30)];
    myWealthLab.text=@"我的财富";
    myWealthLab.font=[UIFont fontWithName:@"ArialMT" size:20];
    myWealthLab.textAlignment=NSTextAlignmentCenter;
    [self.view addSubview:myWealthLab];
    
    UILabel * amountMoneyLab=[[UILabel alloc]initWithFrame:CGRectMake(self.view.frame.size.width/2-55, myWealthLab.frame.origin.y+myWealthLab.frame.size.height-20, 110, 100)];
    amountMoneyLab.text=@"¥9999";
    amountMoneyLab.font=[UIFont fontWithName:@"Arial-BoldMT" size:37];
    amountMoneyLab.textAlignment=NSTextAlignmentCenter;
    [self.view addSubview:amountMoneyLab];
    
    NSArray * arr=[NSArray arrayWithObjects:@"冻结资金",@"交易期金额",@"可消费金额", nil];
    for (int i=0; i<3; i++) {
        UILabel * lab=[[UILabel alloc]initWithFrame:CGRectMake(self.view.frame.size.width/2-65, amountMoneyLab.frame.origin.y+amountMoneyLab.frame.size.height+i*30, 130, 30)];
        lab.textAlignment=NSTextAlignmentCenter;
        lab.text=[NSString stringWithFormat:@"%@：%@元",arr[i],@"0"];
        [self.view addSubview:lab];
    }
    for (int i=0; i<2; i++) {
        UIButton * btn=[UIButton buttonWithType:UIButtonTypeSystem];
        btn.frame=CGRectMake(self.view.frame.size.width/2-130, (self.view.frame.size.height-120)+i*35, 260, 30);
        btn.backgroundColor=i==0?[UIColor greenColor]:[UIColor grayColor];
        [btn setTitle:[NSString stringWithFormat:@"%@",i==0?@"充值":@"提现"] forState:UIControlStateNormal];
        [btn setTintColor:i==0?[UIColor whiteColor]:[UIColor blackColor]];
        [self.view addSubview:btn];
        
    }
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
